
# 元组的定义

t = (1,2,3,4,5,6)
print(t, type(t))

t1 = tuple("789")
print(t, type(t1))

t2 = (1,)
print(t2, type(t2))


tup1 = (x for x in range(10))
print(tup1, type(tup1))         # 生成器
